module.exports = {
  pages: {
    index: {
      // 页面的入口
      entry: './src/views/index/main.js',
      // 页面的模板
      template: './public/index.html',
      // build时输出的文件名
      filename: 'index.html',
      // 当使用 title 选项时，
      // template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
      title: 'U教云',
      // 在这个页面中包含的块，默认情况下会包含
      // 提取出来的通用 chunk 和 vendor chunk。
      chunks: ['chunk-vendors', 'chunk-common', 'index']
    },
    family: {
      entry: './src/pages/family/main.js',
      template: './public/family.html',
      filename: 'family.html',
      title: 'U教云',
      chunks: ['chunk-vendors', 'chunk-common', 'family']
    },
    region: {
      entry: './src/pages/region/main.js',
      template: './public/region.html',
      filename: 'region.html',
      title: 'U教云',
      chunks: ['chunk-vendors', 'chunk-common', 'region']
    },
    teacher: {
      entry: './src/pages/teacher/main.js',
      template: './public/teacher.html',
      filename: 'teacher.html',
      title: 'U教云',
      chunks: ['chunk-vendors', 'chunk-common', 'teacher']
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        _views: '@/views',
        _component: '@/components',
        _utils: '@/utils',
        _style: '@/assets/style',
        _images: '@/assets/images',
        _iconfont: '@/assets/iconfont'
      }
    }
  }
}
